package cn.zn.flow.entity;

import cn.zn.base.bean.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * <p>
 * 回退记录
 * </p>
 *
 * @author zn-admin
 * @since 2021-07-13
 */
@TableName("T_FLOW_ROLLBACK")
public class FlowRollback extends BaseEntity<FlowRollback> {

    /**
     * 对应数据ID
     */
    @TableField("DATA_ID")
    private String dataId;

    /**
     * 对应的表
     */
    @TableField("MAIN_TABLE")
    private String mainTable;

    /**
     * 退回原因
     */
    @TableField("REASON")
    private String reason;

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getMainTable() {
        return mainTable;
    }

    public void setMainTable(String mainTable) {
        this.mainTable = mainTable;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "FlowRollback{" +
                "dataId=" + dataId +
                ", mainTable=" + mainTable +
                ", reason=" + reason +
                "}";
    }
}
